package visualization.renderers
{
	import flash.display.DisplayObject;
	
	import mx.controls.Label;
	import mx.core.UIComponent;
	
	import visualization.Visualization;
	
	public class VisualizationRenderer
	{	
		
		public var backgroundColor:Object = 0xFFFFFF;
		public var elementColor:Object = 0;
		public var elementText:Object = "Item";
		public var textColor:Object = 0;
		
		public function VisualizationRenderer()
		{
		}
		
		public function renderThumbnail( source:Visualization ):void{
			this.renderFull(source);
		}
		public function renderFull( source:Visualization ):void{
			//source.setStyle("backgroundColor",source.getValue(this.backgroundColor) as uint);
		}
		public function clone():VisualizationRenderer{
			return new VisualizationRenderer();
		}
		protected function initClone( rend:VisualizationRenderer ):void{
			return;
		}
		
		public function getLayout( source:Visualization ):Array{
			var layout:Array = new Array();
			for each(var point:UIComponent in source.dataPoints){
				layout.push({ item:point, x:point.x, y:point.y});
			}
			return layout;
		}
	}
}